import  request from './config.js'

// banner
export const getBanner = (data)=>{
	return request({
		url:'/index/banner',
		method:'post',
		data
	})
}
// 首页菜单
export const getDisease = (data)=>{
	return request({
		url:'/index/disease',
		method:'post',
		data
	})
}
// 首页列表
export const getIndexnews = (data)=>{
	return request({
		url:'/index/indexnews',
		method:'post',
		data
	})
}
//关于
export const getAboutList = (data)=>{
	return request({
		url:'/index/aboutList',
		method:'post',
		data
	})
}
// 游戏列表
export const getGameList = (data)=>{
	return request({
		url:'/index/gameList',
		method:'post',
		data
	})
}
//问卷管理
export const getQuestList = (data)=>{
	return request({
		url:'/index/questList',
		method:'post',
		data
	})
}
// 问卷详情
export const getQuestInfo = (data)=>{
	return request({
		url:'/index/questionInfo',
		method:'get',
		data
	})
}
// 搜索关键字
export const getHot = (data)=>{
	return request({
		url:'/index/hotKeyword',
		method:'get',
		data
	})
}

// 调用新闻传递keywords
export const getnewList = (data)=>{
	return request({
		url:'/index/newList',
		method:'get',
		data
	})
}

// 分类信息
export const gettype = (data)=>{
	return request({
		url:'/index/newTypeList',
		method:'get',
		data
	})
}

// indeDaoLan
export const getDaoLan = (data)=>{
	return request({
		url:'/index/indeDaoLan',
		method:'get',
		data
	})
}

// 详情
export const getNewInfo = (data)=>{
	return request({
		url:'/index/newInfo',
		method:'post',
		data
	})
}

// 病信息
export const getBingInfo = (data)=>{
	return request({
		url:'/index/bingInfo',
		method:'post',
		data
	})
}

// 分数区间
export const rsultInfo = (data)=>{
	return request({
		url:'/index/rsultInfo',
		method:'post',
		data
	})
}

export const getTypeRsultInfo = (data)=>{
	return request({
		url:'/index/typeRsultInfo',
		method:'post',
		data
	})
}

export const newClick = (data)=>{
	return request({
		url:'/index/newClick',
		method:'post',
		data
	})
}